package com.samuel.blog.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.samuel.blog.utils.StringUtils;

public class JurisdictionEntity implements Serializable {

	private static final long serialVersionUID = 9209380904550251057L;

	private String jurisdictionId;

    private String code; // 编码
    
    private String url; // 权限URL

    private String name; // 菜单名称

    private String parentId; // 上级菜单

    private Date modifyDate;

    private Date createDate;
    
    private List<JurisdictionEntity> childs;
    
    private JurisdictionEntity parentEntity; // 上级
    

    public String getJurisdictionId() {
		return jurisdictionId;
	}

	public void setJurisdictionId(String jurisdictionId) {
		this.jurisdictionId = jurisdictionId;
	}

	public String getCode() {
        return code;
    }

    public void setCode(String code) {
    		code = StringUtils.isStr(code);
        this.code = code == null ? null : code.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
    		name = StringUtils.isStr(name);
        this.name = name == null ? null : name.trim();
    }

    public String getParentId() {
        return parentId;
    }

    public void setParentId(String parentId) {
        this.parentId = parentId == null ? null : parentId.trim();
    }

    public Date getModifyDate() {
        return modifyDate;
    }

    public void setModifyDate(Date modifyDate) {
        this.modifyDate = modifyDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

	public List<JurisdictionEntity> getChilds() {
		return childs;
	}

	public void setChilds(List<JurisdictionEntity> childs) {
		this.childs = childs;
	}

	public JurisdictionEntity getParentEntity() {
		return parentEntity;
	}

	public void setParentEntity(JurisdictionEntity parentEntity) {
		this.parentEntity = parentEntity;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		url = StringUtils.isStr(url);
		this.url = url;
	}
}